* convert regression dataset to STATA;

/* Modified 04/15/2015 to use CART-completed data
   for all imputed variables (excepted SW and TE).
*/

%include "ASMimplibs.sas";



/* Stack the CART-completed data into one pooled dataset. */


data all ;
 set fhs7797.allbredf_w_dshk_CART
     fhs7797.allcofff_w_dshk_CART
     fhs7797.allicebf_w_dshk_CART
     fhs7797.allicepf_w_dshk_CART
     fhs7797.allflrf_w_dshk_CART
     fhs7797.allplyf_w_dshk_CART
     fhs7797.allboxf_w_dshk_CART
     fhs7797.allcarbonf_w_dshk_CART
     fhs7797.allgasf_w_dshk_CART
     fhs7797.allconcf_w_dshk_CART
     fhs7797.allsugf_dshk;
run;


proc export data=all 
  OUTFILE= "allwt_CARTimputes_dshk99.csv"
  DBMS=CSV REPLACE;
RUN;


